//
//  DeviceInfoCell.m
//  GoldOperationClient
//
//  Created by yaxue wang on 16/9/22.
//  Copyright © 2016年 展鸿科技. All rights reserved.
//

#import "DeviceInfoCell.h"
#import "historyModel.h"

@interface DeviceInfoCell()
@property (nonatomic, strong) UILabel *line;

@end
@implementation DeviceInfoCell

- (void)initView{
    [super initView];
    self.backgroundColor =[UIColor clearColor];
  
    
    self.nameLab = [[UILabel alloc]init];
    [self addSubview:self.nameLab];
    [self.nameLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(15);
        make.centerY.equalTo(self);
    }];
    self.nameLab.textColor =[UIColor whiteColor];
    self.nameLab.font =F(12);
    self.nameLab.textAlignment =NSTextAlignmentRight;
    
    self.contexLab =[[UILabel alloc]init];
    [self addSubview:self.contexLab];
    [self.contexLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.mas_right).offset(-15);
        make.centerY.equalTo(self);
        
    }];
    self.contexLab.textColor =[UIColor whiteColor];
    self.contexLab.font =F(12);
//    self.contexLab.numberOfLines=0;
    self.contexLab.textAlignment =NSTextAlignmentLeft;
    
    self.line =[[UILabel alloc]initWithFrame:CGRectMake(0,self.bounds.size.height-0.5 , WindowWidth, 0.5)];
    self.line.backgroundColor = [UIColor colorFromHexString:@"565656"];
    [self addSubview:self.line];
    
    [self setSelectionStyle:UITableViewCellSelectionStyleNone];
}

@end
